/*
 * @Author: wrh123 482597539@qq.com
 * @Date: 2024-01-21 08:45:55
 * @LastEditors: wrh123 482597539@qq.com
 * @LastEditTime: 2024-01-25 10:43:31
 * @FilePath: /vue-admin/src/api/Profit.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import service from '@/utils/request'

// 所属阶段回显
export function getPhase() {
    return service.get('/dropdownbox/showAccountStage')
}

// 退费申请分页查询
// export function getRefundList(params) {
//   return service.get('/withdraw/premium/page', params)
// }

export function getRefundList(params) {
    return service({
        url: '/RefundWithdraw/profitRefund/page',
        method: 'get',
        params
    })
}

// 盈利申请分页查询
export function getProfitList1(params) {
    return service({
        url: '/withdraw/profit/page',
        method: 'get',
        params
    })
}

// 盈利处理体现
export function handleRefund(data) {
    return service.post('/withdraw/processingWithdrawal', data)
}

// 退费处理提现
export function handleProfit(data) {
    return service.post('/RefundWithdraw/processingWithdrawalRefund', data)
}

// 缴费信息的查询列表
// export function getPaymentList(params) {
//   return service.get('/payment/page', params)
// }
export function getPaymentList(params) {
    return service({
        url: '/payMessage/page',
        method: 'get',
        params
    })
}

// 缴费信息的处理
// export function handlePayment(data) {
//   return service.post('/payMessage/Dispose', data)
// }

export function handlePayment(data) {
    return service({
        url: 'payMessage/Dispose',
        method: 'post',
        data
    })
}

// 盈利提取提现信息的回显
export function getWithdrawList(data) {
    return service({
        url: '/withdraw/selectBankCardInformation/' + data,
        method: 'get',
    })
}

// 退款申请提现信息的回显
export function getRefundList1(data) {
    return service({
        url: '/RefundWithdraw/selectBankCardRefundWithdraw/' + data,
        method: 'get',
    })
}

// 回显收费银行卡信息
export function Bankinformation() {
    return service({
        url: '/payMessage/selectTbBankCard',
        method: 'get',
    })
}

// 修改银行卡信息
export function submitBank(data) {
    return service({
        url: 'payMessage/updateTbBankCard',
        method: 'post',
        data
    })
}

// 修改客服操作
export function submitCustomer(data) {
    return service({
        url: '/withdraw/updateWithdrawVerify',
        method: 'post',
        data
    })
}

// 加密货币-上传照片回显Base64字符串
export function getBase64(data) {
    return service({
        url: '/Confirm/PingTbConfirmCode',
        method: 'post',
        data
    })
}

// 加密货币-新增加密货币
export function addCrypto(data) {
    return service({
        url: '/cryptocurrency/insertTbConfirm',
        method: 'post',
        data
    })
}

// 加密货币-分页查询
export function getCrypto(params) {
    return service({
        url: '/cryptocurrency/selectTbConfirmPage',
        method: 'get',
        params
    })
}

// 加密货币-根据ID删除加密货币
export function delCrypto(data) {
    return service({
        url: '/cryptocurrency/deleteTbConfirmById/' + data,
        method: 'delete',
    })
}

// 加密货币-修改加密货币的信息
export function editCrypto(data) {
    return service({
        url: '/cryptocurrency/updateTbConfirmById',
        method: 'put',
        data
    })
}